<%@ page contentType="text/html" language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib  uri="/struts-tags" prefix="s"%>
<jsp:include page="../include/_dwz_form_head.jsp" />
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="projectmanagement/ProjectmanagementList" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td >
					 项目名称：<input type="text" id="projectname" name="b_T_Flow_ProjectManagement.projectName" value="${b_T_Flow_ProjectManagement.projectName}"/>
				</td>
				<td>
					负责人：<input type="text" id="staffName" name="b_T_Flow_ProjectManagement.staffName" value="${b_T_Flow_ProjectManagement.staffName}"/>
				</td>
				<td>
					是否关闭：<s:select label="" headerKey="" headerValue="--请选择--" list="#{1:'已关闭',0:'未关闭'}" name="b_T_Flow_ProjectManagement.status" cssStyle="height:22px;"/>
				</td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
				  <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
                                   		 搜索
                                </button>
                            </div>
                        </div>
                    </li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="projectmanagement/ProjectmanagementJump" target="navTab"><span>添加</span></a></li>
			<li>
			 <a title="确实要删除这些记录吗?" target="selectedTodo" rel="checkIds" href="projectmanagement/ProjectmanagementDelUpdate" class="delete"><span>删除</span></a>
			 </li>
			 <li>
			<a title="确实要关闭这个项目吗?" target="selectedTodo" rel="checkIds" href="projectmanagement/ProStatusUpdate" class="delete"><span>关闭项目</span></a>
			</li>
			 <li class="line">
                line
            </li>
</ul>
	</div>
	<table class="table" width="100%" layoutH="123">
		<thead>
			<tr>
			   <th width="1%">
                    <input type="checkbox" name="checkIds" group="checkIds" class="checkboxCtrl">
                </th>
                 <th width="3%" align="center">
              		序号        	
                </th>
				<th width="15%" align="left" orderField="project_name" <c:if test="${(pager.orderField)== 'project_name'}">class="${pager.orderDirection}"
				</c:if>>项目名称</th>
				<th width="5%" align="center" orderField="staff_name" <c:if test="${(pager.orderField)== 'staff_name'}">class="${pager.orderDirection}"
				</c:if>>负责人</th>
				<th width="5%" align="center" orderField="project_status" <c:if test="${(pager.orderField)== 'project_status'}">class="${pager.orderDirection}"
				</c:if>>项目状态</th>
				<th width="5%" align="center" orderField="begin_time" <c:if test="${(pager.orderField)== 'begin_time'}">class="${pager.orderDirection}"
				</c:if>>项目开始时间</th>
				<th width="5%" align="center" orderField="end_time" <c:if test="${(pager.orderField)== 'end_time'}">class="${pager.orderDirection}"
				</c:if>>项目结束时间</th>
				<th width="7%" align="center" orderField="close_time" <c:if test="${(pager.orderField)== 'close_time'}">class="${pager.orderDirection}"
				</c:if>>项目关闭时间</th>
				<th width="7%" align="center" orderField="customer_information" <c:if test="${(pager.orderField)== 'customer_information'}">class="${pager.orderDirection}"
				</c:if>>客户信息</th>
				<th width="5%" align="center" orderField="status" <c:if test="${(pager.orderField)== 'status'}">class="${pager.orderDirection}"
				</c:if>>是否关闭</th>
			    <th width="5%" align="center">操作 </th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${pager.pageRecords}" var="b_T_Flow_ProjectManagement" varStatus="s">
		<tr target="sid_user" rel="1">
			  <td>
               <input name="checkIds" value="${b_T_Flow_ProjectManagement.projectUuid}" type="checkbox">
              </td>
              	<td>${s.count +pager.pageSize*(pager.currentPage-1)}</td>
				<td title="${b_T_Flow_ProjectManagement.projectName}">
					<a title="查看项目" target="navTab" href="projectmanagement/ProjectmanagementReade?b_T_Flow_ProjectManagement.projectUuid=${b_T_Flow_ProjectManagement.projectUuid}&moduleName=project&b_T_Ufp_TaskManager.taskSpeed=0">
					<font color="blue">${b_T_Flow_ProjectManagement.projectName}</font></a>
				</td>
				<td>${b_T_Flow_ProjectManagement.staffName}</td>
				<td>${b_T_Flow_ProjectManagement.projectStatus}</td>
				<td>${b_T_Flow_ProjectManagement.beginTime}</td>
				<td>${b_T_Flow_ProjectManagement.endTime}</td>
				<td>${b_T_Flow_ProjectManagement.closeTime}</td>
				<td title="${b_T_Flow_ProjectManagement.customerInformation}">${b_T_Flow_ProjectManagement.customerInformation}</td>
				<td>
				<c:if test="${b_T_Flow_ProjectManagement.status == '1'}">
					<font color="red">已关闭</font>
				</c:if>
				<c:if test="${b_T_Flow_ProjectManagement.status != '1'}">
					<font color="green">未关闭</font>
				</c:if>
				</td>
			    <td>
                    <a title="删除" target="ajaxTodo" href="projectmanagement/ProjectmanagementDelUpdate?checkIds=${b_T_Flow_ProjectManagement.projectUuid}" class="btnDel">删除</a>
                    <a title="编辑" target="navTab" href="projectmanagement/ProjectmanagementJump?b_T_Flow_ProjectManagement.projectUuid=${b_T_Flow_ProjectManagement.projectUuid}" rel="editMsg" class="btnEdit">编辑</a>
                    <a title="添加任务" target="navTab" href="projectmanagement/TaskManageDital?projectUuid=${b_T_Flow_ProjectManagement.projectUuid}&projectName=${b_T_Flow_ProjectManagement.projectName}" rel="editMsg" class="btnAdd">添加任务</a>
                </td>
                </tr>
                </c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
        <jsp:include page="../include/_dwz_form_bottom.jsp" />
    </div>
</div>
